@charset "utf-8";
/*公共样式*/
html{font-family:"Helvetica Neue",Helvetica,STHeiTi,sans-serif;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;}
body{-webkit-overflow-scrolling:touch;margin:0;}
ul{margin:0;padding:0;list-style:none;outline:none;}
dl,dd{margin:0;}
a{display:inline-block;margin:0;padding:0;text-decoration:none;background:transparent;outline:none;color:#000;}
a:link,a:visited,a:hover,a:active{text-decoration:none;color:currentColor;}
a,dt,dd{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;}
img{border:0;}
p{margin:0;}
input,button,select,textarea{margin:0;padding:0;border:0;outline:0;background-color:transparent;}
button:hover{
    cursor:pointer;
}
/*css reset*/
body {
    position: relative;
}

.chat-wrapper {
    font-size: 14px;
    color: #fff;
}
/*右侧按钮*/
.chat-support-btn {
    position: fixed;
    display: inline-block;
    top: 50%;
    right: 0;
    margin-top: -70px;
    width: 40px;
    height: 40px;
    cursor:pointer;

}
.chat-support-btn img{
    position:absolute;
    border-radius:50%;
}
/* 对话框*/
.chat-main {
    position: fixed;
    display: none;
    right: 100px;
    bottom: 10px;
    width: 650px;
    height: 800px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
}

/*对话框头部*/
.chat-header {
    position: relative;
    padding: 10px;
    height: 80px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    background-color: #cc3333;
}
.chat-header a:hover{
    cursor:pointer;
}
/*个人信息框*/
.header-info-div{
    display:none;
    width:290px;
    height:150px;
    margin:-600px 0 0 -300px;
    border-radius:4px;
    background-image:url("images/bg.jpeg");
}
.header-info-h2{
    display:inline-block;
    margin:15px 0 0 25px;
}
.header-info-span{
    position:absolute;
    top:45px;
    left:-276px;
}
.chat-close {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 2px;
    font-size: 22px;
    transform: rotate(90deg);
    cursor: pointer;
}

.chat-service-info {
    position: relative;
    top: 50%;
    margin-top: -20px;
    height: 40px;
}

.chat-service-img {
    display: inline-block;
    margin: 0 10px 0 20px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
    color: #000;
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .2);
    background-image: url("images/h.jpg");
}

.chat-service-title {
    display: inline-block;
    vertical-align: middle;
}

.chat-service-detail {
    font-size: 12px;
}

/*对话框内容*/
.chat-contain {
    overflow-y: auto;
    padding: 10px;
    height: 380px;
    word-wrap: break-word;
    background-color: #f9f9f9;
}

.chat-text {
    display: inline-block;
    position: relative;
    padding: 10px;
    max-width: 120px;
    color:black;
    white-space: pre-wrap;
    border: 1px solid #ffff7d;
    border-radius: 4px;
    background-color: #ffff7d;
    box-sizing: border-box;

}
.chat-time{
    color:#939393;
    font-size:12px;
}
.chat-service-contain {
    margin-bottom: 10px;
    text-align: left;
}
.chat-service-contain .chat-time{
    margin:0 0 0 37px;
}
.chat-address{
    display:inline-block;
    max-width:100px;
    white-space:pre-wrap;
}
.chat-service-text {
    margin-left:40px;
}
.chat-service-text:before {
    content: '';
    position: absolute;
    top: 50%;
    left:-48px;
    width:35px;
    height:36px;
    border:1px solid transparent;
    background-image:url('images/hs.jpg');
    border-radius:50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}
.chat-you-contain {
    margin-bottom: 10px;
    text-align: right;
    /* float:right; */
}
.chat-you-contain .chat-time{
    margin:0 20px 0 0;
}
.chat-you-text {
    margin-right: 20px;
    text-align:left;
}

.chat-you-text:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #ffff7d;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}
/*客服对话框底部与输入*/
.chat-submit {
    position: relative;
    padding: 10px;
    height: 100px;
    color: #000;
    word-wrap: break-word;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
}

/*空输入提示*/
.chat-hint {
    display:none;
    position:absolute;
    top: -15px;
    left: 20px;
    padding: 2px;
    width: 140px;
    height: 18px;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    border: 1px solid #ddd;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .4);
    background-color: #fff;
}

.chat-hint-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    vertical-align: middle;
    line-height: 18px;
    color: #fff;
    border-radius: 50%;
    background-color: #5d94f3
}

.chat-hint-text {
    display: inline-block;
    vertical-align: middle;
}

/*输入框*/
.chat-input-text {
    overflow-y: auto;
    display: inline-block;
    padding: 5px 10px;
    width: 100%;
    height: 70px;
    vertical-align: middle;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: none;
    box-sizing: border-box;
}

.chat-input-tools {
    position:absolute;
    width: 100%;
    height:30px;
    margin:-25px 0 0 400px;
    vertical-align: middle;
}
button{
    width:62px;
    height:28px;
    border-radius:4px;
    background-color: #cc3333;
    margin:5px 0;
}
.chat-input-tools>button:hover{
    cursor:pointer;
}
.simulator-text{
    display: inline-block;
    width:200px;
    height:260px;
    overflow-y: auto;
    padding: 10px 10px;
    vertical-align: middle;
    color: #000;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: none;
    box-sizing: border-box;

}
.chat-simulator{
    display:none;
    position:absolute;
    left:-230px;
    top:200px;
    width:200px;
    height:300px;
    border:1px solid  #cc3333;
    border-radius:4px;
    background-color: #f9f9f9;
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
}
.simulator-btn{
    float:right;
    padding:0 10px;
}